import React from 'react'
const { $fn, $Lazy } = window
// ===================================================================== private template
const Menu = $Lazy.load(()=>import('#frame/menu'))
// ===================================================================== 物流系统
class Index extends React.Component{
	state = {
		data:[]
	}
	
	skip = { to: 'lgistics-system/basicInfo-entry' }
	
	child = [
		{
			id: 'wlxmxx', 
			parent: '/lgistics-system/item-information',
			children: [
				{ title: '录入项目', 	path: 'project-enter', component:'specimen-manage/info-entry/project-list/project-enter' },
				{ title: '双录入', 		path: 'double-entry', component:'specimen-manage/info-entry/project-list/double-entry' },
				{ title: '双录入纠错', 	path: 'items-error-recovery', component:'specimen-manage/info-entry/project-list/items-error-recovery' }
			]
		},
		{
			id: 'specimenbox', 
			parent: '/lgistics-system/box-transfer',
			children: [
				{ title: '整箱转箱', 	path: 'all' },
				{ title: '部分转箱', 	path: 'part' }
			]
		},
		{
			id: 'tmgl', 
			parent: '/lgistics-system/code-generate',
			children: [
				{ title: '条码生成', 	path: 'morecode-generate', component:'specimen-manage/info-entry/code-generate/morecode-generate' }
			]
		},
		{
			id: 'wljbxx', 
			parent: '/lgistics-system/basicInfo-entry',
			children: [
				{ title: '快捷录入', 	path: 'fast-entry',		component: 'specimen-manage/info-entry/basicInfo-entry/fast-entry' },
				{ title: '双录入', 		path: 'double-entry',	component: 'specimen-manage/info-entry/basicInfo-entry/double-entry' },
				{ title: '双录入纠错', 	path: 'error-correction',	component: 'specimen-manage/info-entry/basicInfo-entry/error-correction' }
			]
		},
		//我的医院
		{
			id: 'myhospital', 
			parent: '/lgistics-system/my-hospital',
			children: [
				{ title: '查看报告', path: 'check-report',
					children:[
						$fn.menu.preview_report
					]
				},
			]
		},
		//我的申请单
		{
			id: 'application', 
			parent: '/lgistics-system/my-application',
			children: [
				{ title: '详细信息', 	path: 'check-report' }
			]
		},
		//报告单派送
		{
			id: 'report', 
			parent: '/lgistics-system/send-report',
			children:[
				$fn.menu.preview_report
			]
		}
	]
	
	componentDidMount(){
		$fn.getMenu.call(this, 'wuliusystem', this.child)
	}
	
	render(){
		return <Menu data={this.state.data} skip={ this.skip } />
	}
}

export default Index